package com.zzh.api.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zihong.zheng
 * @version 1.0
 * @date 2019/2/9
 * @time 23:25
 * @description
 */
@RestController
@RefreshScope
public class ClientController {


    @Value("${zzh}")
    private String zhengzihong;

    @RequestMapping(value = "/getConfigInfo", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public String getConfigInfo() {
        return zhengzihong;
    }
}
